package com.beg.cant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("gift")  // MyBatis-Plus 表名映射
@Schema(description = "礼物信息实体")
@NoArgsConstructor
public class Gift {
    @TableId(type = IdType.AUTO)
    @Schema(description = "礼物ID", example = "1")
    private Integer id;

    @Schema(description = "礼物名称", example = "泡面")
    private String name;

    @Schema(description = "图片地址", example = "/static/th.jpg")
    private String icon;

    @Schema(description = "价格", example = "5.0")
    private Double price;
}